﻿using Linq2Rest.Implementations;
using Linq2Rest.Provider;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xinchen.Utils;

namespace Xinchen.SOA.Client
{
    public class ClientBase<T>
    {
        //public ClientBase(string serviceName)
        //{
        //    restContext = new RestContext<T>(new JsonRestClient(new Uri("http://api.manager.xinchen.com/" + serviceName + "/get")), new JsonNetSerializerFactory());
        //}
        RestContext<T> restContext;

        public IQueryable<T> Query
        {
            get { return restContext.Query; }
        }
    }
}
